package com.cn.steam.iam.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cn.steam.iam.mapper.iam.IamPartnerMapper;
import com.cn.steam.iam.mapper.iam.IamPartnerRoleMapper;
import com.cn.steam.iam.model.po.IamPartner;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjm
 * @date 2021/05/10
 */
@Service
public class IamPartnerProfileService extends ServiceImpl<IamPartnerMapper, IamPartner> {
    @Autowired
    private IamPartnerRoleMapper iamPartnerRoleMapper;

    public List<String> qryPartRoleByPartnerId(@Param("partnerId") String partnerId) {
        return iamPartnerRoleMapper.qryRoleIdByPartnerId(partnerId);
    }
}
